package com.btkjgc.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "exchange_electric_battery_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ExchangeElectricBattery extends Base implements java.io.Serializable {
	
	private Integer id;
	private Integer execreid;
	private String batteryid;
	private Integer updown;
	private Double maxsinglevoltage;
	private Double minsinglevoltage;
	private Integer maxtemp;
	private Integer mintemp;
	private Double voltage;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createtime;
	
	@Id  
 	@Column(name="id",unique=true)  
    @GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getExecreid() {
		return execreid;
	}
	public void setExecreid(Integer execreid) {
		this.execreid = execreid;
	}
	public String getBatteryid() {
		return batteryid;
	}
	public void setBatteryid(String batteryid) {
		this.batteryid = batteryid;
	}
	public Integer getUpdown() {
		return updown;
	}
	public void setUpdown(Integer updown) {
		this.updown = updown;
	}
	public Double getMaxsinglevoltage() {
		return maxsinglevoltage;
	}
	public void setMaxsinglevoltage(Double maxsinglevoltage) {
		this.maxsinglevoltage = maxsinglevoltage;
	}
	public Double getMinsinglevoltage() {
		return minsinglevoltage;
	}
	public void setMinsinglevoltage(Double minsinglevoltage) {
		this.minsinglevoltage = minsinglevoltage;
	}
	public Integer getMaxtemp() {
		return maxtemp;
	}
	public void setMaxtemp(Integer maxtemp) {
		this.maxtemp = maxtemp;
	}
	public Integer getMintemp() {
		return mintemp;
	}
	public void setMintemp(Integer mintemp) {
		this.mintemp = mintemp;
	}
	public Double getVoltage() {
		return voltage;
	}
	public void setVoltage(Double voltage) {
		this.voltage = voltage;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
}